#ifndef COLLADA_SOURCE_H_
#define COLLADA_SOURCE_H_

namespace Collada
{

	class Source : public Element
	{
	DECLARE_RTTI( Collada::Source, Collada::Element )
	DECLARE_ELEMENT( Collada::Source )

	public :
		~Source();
		void*					GetArray(){ return _array; }
		int						GetCount(){ return _count; }
		TypeAndFormat			GetTypeAndFormat(){ return _typeAndFormat; }
		ID						GetSourceID(){ return _sourceID; }

	private :
		Source( const std::string& id, const std::string& name );

		bool					GetArrayData( char* pStream	);		

		void*					_array;
		int						_arraySize;
		std::string				_arrayType;
		int						_count;
		TypeAndFormat			_typeAndFormat;
		ID						_sourceID;
		int						_stride;

	};

};

#endif